package libra.model.seate;

import java.io.Serializable;

/**
 * 模拟编写SeataDemo的库存操作流水记录
 * @author libra
 */
public class GoodsDetails implements Serializable {
	/**  */
	private static final long serialVersionUID = 7154406555643514173L;
	
	private Integer id;
	// 订单id
	private Integer order_id;
	// 商品id
	private Integer goods_id;
	// 当前下单数
	private Integer count;
	// 剩余库存数
	private Integer num;
	private String create_time;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getOrder_id() {
		return order_id;
	}
	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}
	public Integer getGoods_id() {
		return goods_id;
	}
	public void setGoods_id(Integer goods_id) {
		this.goods_id = goods_id;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public GoodsDetails() { }
	public GoodsDetails(Integer order_id, Integer goods_id, Integer count, Integer num, String create_time) {
		super();
		this.order_id = order_id;
		this.goods_id = goods_id;
		this.count = count;
		this.num = num;
		this.create_time = create_time;
	}
	@Override
	public String toString() {
		return "GoodsDetails [id=" + id + ", order_id=" + order_id + ", goods_id=" + goods_id + ", count=" + count
				+ ", num=" + num + ", create_time=" + create_time + "]";
	}
}
